import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { SignController } from './sign.controller';
import { SignService } from './sign.service';
import { Sign,User,Score } from '../entity';
import { APP_GUARD } from '@nestjs/core';
import {AuthGuard} from '../guard/auth.guard'

@Module({
  imports: [TypeOrmModule.forFeature([Sign,User,Score])],
  controllers: [SignController],
  providers: [
    {
      provide: APP_GUARD,
      useClass:AuthGuard,
    },
    SignService,
  ],
  exports: [],
})
export class SignModule { }
